package com.example.demo.controller;

import com.example.demo.model.Result;
import com.example.demo.service.IndexImgService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index-img")
@AllArgsConstructor
public class IndexImgController {
    private IndexImgService indexImgService;

    @GetMapping
    public Result getAllIndexImg(){
        return Result.buildSuccess(indexImgService.getIndexImgFronted());
    }
}